package com.class04.servcie;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @ClassDescription:
 * @JdkVersion: 17
 * @Author: yxy
 * @Created: 2023/11/10 14:10
 */
@Service
public class TopService {
    @Autowired
    private StudentService service;
    @Transactional
    public void topService(){
        service.changeAge();
        service.changeName();
    }
}
